package com.shanjupay.merchant.service;

import com.shanjupay.common.domain.BusinessException;

/**
 * @author whb
 * @create 2021-11-19 13:43
 * @desciption 短信服务Service
 */
public interface SmsService {
    /**
     * 获取短信验证key
     *
     * @param phone 手机号码
     * @return
     */
    String getSmsKey(String phone);

    /**
     * 校验短信验证码
     *
     * @param verifiyKey  验证码的key
     * @param verifiyCode 验证码
     */
    void checkVerifiyCode(String verifiyKey, String verifiyCode) throws BusinessException;
}
